option (BUILD_X64 "Build x64 version" ON)

if(BUILD_X64)
	set(BUILD_ARCHITECTURE "x64")
else()
	set(BUILD_ARCHITECTURE "x86")
endif()

if(MSVC)

set(add_incs_external
	${EXTERNALS_ROOT}/boost
#	${EXTERNALS_ROOT}/stlport/stlport
#	${EXTERNALS_ROOT}/tbb/include
	${EXTERNALS_ROOT}/gtest/include
)

set(add_libs_external
	${EXTERNALS_ROOT}/boost/stage/${BUILD_ARCHITECTURE}/lib
#	${EXTERNALS_ROOT}/stlport/lib/${BUILD_ARCHITECTURE}
#	${EXTERNALS_ROOT}/tbb/lib/${BUILD_ARCHITECTURE}
	${EXTERNALS_ROOT}/gtest/lib/${BUILD_ARCHITECTURE}
)

set(add_incs_graph
	${EXTERNALS_ROOT}/DXSDK/include
)
set(add_libs_graph
	${EXTERNALS_ROOT}/DXSDK/lib/${BUILD_ARCHITECTURE}
)

endif(MSVC)

if(UNIX)

set(add_incs_external
	${EXTERNALS_ROOT}/boost
#	${EXTERNALS_ROOT}/stlport/stlport
#	${EXTERNALS_ROOT}/tbb/include
	${EXTERNALS_ROOT}/gtest/include
)

set(add_libs_external
	${EXTERNALS_ROOT}/boost/stage/${BUILD_ARCHITECTURE}/lib
#	${EXTERNALS_ROOT}/stlport/lib/${BUILD_ARCHITECTURE}
#	${EXTERNALS_ROOT}/tbb/lib/${BUILD_ARCHITECTURE}
	${EXTERNALS_ROOT}/gtest/lib/${BUILD_ARCHITECTURE}
)

endif(UNIX)

set(add_incs_main
	${ENGINE_ROOT}/libs
	${ENGINE_ROOT}/prjs
)

set(add_libs_main
)

set(add_incs_all
	${add_incs_external}
	${add_incs_graph}
	${add_incs_main}
)

set(add_libs_all
	${add_libs_external}
	${add_libs_graph}
	${add_libs_main}
)

include_directories ( ${add_incs_all} )

link_directories( ${add_libs_all} )